package com.artlongs.webapp.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * Function:
 * ========================================
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 14-4-6
 * ========================================
 */
@Controller
@RequestMapping("")
public class HelloController {

    private static final Logger log = LoggerFactory.getLogger(HelloController.class);




    @RequestMapping({"","/index"})
    public String index(Model model){

        model.addAttribute("message", "HELLO LITON!");

        return "/user";
    }



}
